package pub.elephants.net.body;

import java.util.Arrays;

/**
 * request对象
 */
public class ElephantsRequest extends ElephantsAbsMessage {
    private String methodName;
    private String className;
    private Class<?>[] paramTypes;
    private Object[] paramValues;
    private long createCurrentTimeMillis;

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public Class<?>[] getParamTypes() {
        return paramTypes;
    }

    public void setParamTypes(Class<?>[] paramTypes) {
        this.paramTypes = paramTypes;
    }

    public Object[] getParamValues() {
        return paramValues;
    }

    public void setParamValues(Object[] paramValues) {
        this.paramValues = paramValues;
    }

    public long getCreateCurrentTimeMillis() {
        return createCurrentTimeMillis;
    }

    public void setCreateCurrentTimeMillis(long createCurrentTimeMillis) {
        this.createCurrentTimeMillis = createCurrentTimeMillis;
    }

    @Override
    public String toString() {
        return "ElephantsRequest{" +
                "methodName='" + methodName + '\'' +
                ", className='" + className + '\'' +
                ", paramTypes=" + Arrays.toString(paramTypes) +
                ", paramValues=" + Arrays.toString(paramValues) +
                ", createCurrentTimeMillis=" + createCurrentTimeMillis +
                '}';
    }
}
